package com.sky.service;

import com.sky.mapper.UserMapper;
import com.sky.pojo.User;
import org.apache.ibatis.transaction.Transaction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.test.context.transaction.AfterTransaction;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class UserService {

    @Autowired
    private UserMapper mapper;

    public List<User> getAll() {
        return mapper.getAll();
    }
}
